package com.bw.msg.bind;

import androidx.databinding.BindingAdapter;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;

import com.chad.library.adapter.base.BaseQuickAdapter;

/**
 * @author KK
 * @description:
 * @date :2021/10/19 10:21
 */
public class MsgRvBind {

    @BindingAdapter(value = "adapter")
    public static void bindmsgadapter(RecyclerView recyclerView, BaseQuickAdapter adapter){
        recyclerView.setLayoutManager(new LinearLayoutManager(recyclerView.getContext()));
        recyclerView.setAdapter(adapter);

    }
}
